﻿/*
 * Copyright (c) Jason Paul Morley, 2010
 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    /// <summary>
    /// A component of the program with access to the event map and database
    /// </summary>
    public class BComponent
    {
        /// <summary>
        /// Construct the component with access to the passed event map and database
        /// </summary>
        /// <param name="em"></param>
        /// <param name="db"></param>
        public BComponent(EventMap em, Database db)
        {
            _pv_emMap = em;
            _pv_dbDatabase = db;
        }
        
        /// <summary>
        /// The event map associated with this component
        /// </summary>
        protected EventMap EventMap { get { return _pv_emMap; } }
        private EventMap _pv_emMap;

        /// <summary>
        /// The database associated with this component
        /// </summary>
        protected Database Database { get { return _pv_dbDatabase; } }
        private Database _pv_dbDatabase;
    }
}
